ProfilePress\Core\Membership\Models\Subscription\SubscriptionEntity C

Total Complexity 124
Dependencies 18
Dependents 8
Total lines 844
Lines of code 414
Logical lines of code 222
Comment lines 171
Methods 58
Properties 18

Methods 58

Method Rating Maintainability Complexity Lines of code
renew()
A
45 10 43
is_active()
A
52 9 24
is_expired()
S
55 7 17
__construct()
S
60 7 12
cancel()
S
56 6 18
expire()
S
62 5 11
maybe_complete_subscription()
S
67 4 8
activate_subscription()
S
60 3 13
enable_subscription_trial()
S
60 3 13
update_meta()
S
56 2 19
complete()
S
68 3 7
has_cancellation_requested()
S
73 3 4
get_subscription_terms()
S
61 2 13
update_status()
S
62 2 11
get_recurring_tax_rate()
S
79 2 3
get_formatted_expiration_date()
S
68 2 7
remove_plan_role_from_customer()
S
64 2 9
set_status()
S
70 2 6
set_trial_period()
S
70 2 6
can_cancel()
S
75 2 4
add_plan_role_to_customer()
S
64 2 9
get_recurring_tax()
S
79 2 3
get_initial_tax_rate()
S
79 2 3
get_initial_tax()
S
79 2 3
get_last_order()
S
63 2 10
has_trial()
S
79 2 3
is_lifetime()
S
78 2 3
save()
S
64 2 10
get_times_billed()
S
67 1 8
delete_cancellation_requested()
S
80 1 3
update_profile_id()
S
79 1 3
add_renewal_order()
S
68 1 8
get_meta_flag_id()
S
79 1 3
get_meta()
S
65 1 10
add_cancellation_requested()
S
75 1 4
get_payment_method()
S
80 1 3
get_all_orders()
S
71 1 6
get_customer_id()
S
80 1 3
get_id()
S
80 1 3
is_pending()
S
80 1 3
is_cancelled()
S
80 1 3
is_completed()
S
80 1 3
is_recurring()
S
80 1 3
get_parent_order_id()
S
80 1 3
get_plan()
S
80 1 3
get_plan_id()
S
80 1 3
get_customer()
S
80 1 3
add_note()
S
71 1 5
get_initial_amount()
S
81 1 3
get_recurring_amount()
S
81 1 3
get_total_payments()
S
80 1 3
get_completed_order_count()
S
71 1 6
get_profile_id()
S
78 1 3
get_status()
S
78 1 3
get_status_label()
S
80 1 3
exists()
S
80 1 3
get_notes()
S
78 1 3
delete_meta()
S
65 1 9